package engine.newUi
{
	import engine.data.ResPath;
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.tab.NxTab;
	import newx.com.control.table.NxTable;
	import newx.com.control.text.NxLabel;
	
	/**
	 * 排行榜
	 * @author yangyuechao
	 */
	public class RankUI extends BaseUI
	{
		public var proBG			:Sprite;
		public var rankBG			:Sprite;
		public var proLabel1		:NxLabel;
		public var proLabel2		:NxLabel;
		public var proLabel3		:NxLabel;
		public var proPic			:NxClip;
		public var proLevRank		:NxLabel;
		public var proAttRank		:NxLabel;
		public var proPetRank		:NxLabel;
		public var proLevel		:NxLabel;
		public var proName			:NxLabel;
		public var rankTab			:NxTab;
		public var rankTable		:NxTable;
		public var upBtn			:NxButton;
		public var nextBtn			:NxButton;
		public var pageLabel		:NxLabel;
		public var pageBG			:Sprite;
		public var proPicBG		:Sprite;
		public var proLevelBG		:Sprite;
		public var proNameBG		:Sprite;
		public var proLine			:Sprite;
		public var proFightLabel	:NxLabel;
		public var proFightPower	:NxLabel;
		private var _myLogic		:RankLogic;
		private static var _self	:RankUI;
		public function RankUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		public static function getInstance():RankUI
		{
			if(_self == null)
			{
				_self	=	new RankUI();
			}
			return _self;
		}
		
		override public function Init():void
		{
			_myLogic	=	RankLogic.getInstance();
		}
		override protected function AfterHide():void
		{
			_myLogic.removeListener();
		}
		override protected function BeforeShow():void
		{
			_myLogic.BeforeShow();
		}
	}
}